package ProyectoX;

import java.awt.Graphics;
import java.awt.Image;

import javax.swing.ImageIcon;
import javax.swing.JTextArea;

public class TextAreaConFondo extends JTextArea {
	
	protected Image ii;
	
	public TextAreaConFondo(){
		ii=new ImageIcon(getClass().getResource("/Botones/baliza.png")).getImage();
	}
	/**
	 * Dibuja el fondo del JTextArea
	 */
	public void paint(Graphics g) {
        g.drawImage(ii,0,0,320,420-32,this);
        setOpaque(false);
        super.paint(g);
}
}
